#ifndef INT_H
#define INT_H
#include <iostream>
using namespace std;
class Int {
private:
    int num;
public:
    //构造函数
    Int(int n = 0);
    Int(const Int &i);

    friend Int operator+(const Int& n1, const Int& n2);
    friend Int operator-(const Int& n1, const Int& n2);
    friend Int operator*(const Int& n1, const Int& n2);
    friend Int operator/(const Int& n1, const Int& n2);

    Int& operator=(const Int& n);
    Int& operator+=(const Int &n);
    Int& operator-=(const Int &n);
    Int& operator*=(const Int &n);
    Int& operator/=(const Int &n);
    //关系运算符
    friend bool operator<(const Int& n1, const Int& n2);
    friend bool operator>(const Int& n1, const Int& n2);
    friend bool operator==(const Int& n1, const Int& n2);
    //自增自减
    Int& operatoar++();
    Int operator++(int);
    Int& operator--();
    Int operator--(int);
    //流插入和流提取运算符函数
    friend ostream& operator<<(ostream& out, const Int& r);
    friend istream& operator>>(istream& in, Int& r);
};
#endif